package com.peanut.service;

import com.orm.mapper.IService;
import com.peanut.entity.AdminUser;
import com.peanut.entity.Page;
import com.peanut.entity.dto.MyInfo;
import com.peanut.entity.dto.MyPassword;

public interface AdminUserService extends IService<AdminUser> {
	
	AdminUser login(String name, String password);
	
	Page<AdminUser> pageList(Integer currentPage, Integer pageSize);
	
	
	// 删除管理员,只改标记
	boolean deleteAdminUser(int id);
	
	
	// 更新管理员,只改名字 是否有效和角色id
	boolean updateAdminUser(AdminUser adminUser);
	
	
	// 查询个人信息
	MyInfo queryMyInfo(int id);
	
	// 修改个人信息
	boolean updateMyInfo(MyInfo myInfo,int id);
	
	// 修改个人密码
	boolean modifyMyPassword(MyPassword myPassword,int id);
}
